home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / unix / ch11 / 11fig02.wrl < prev    next >
Text File  |  1996-09-22  |  2KB  |  110 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright 1997 By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Group {
  6.     children [
  7.     # Cafe Sign in a Billboard group
  8.         Billboard {
  9.             axisOfRotation 0.0 1.0 0.0
  10.             children [
  11.                 DEF Cafe Shape {
  12.                     appearance DEF GlowWhite Appearance {
  13.                         material Material {
  14.                             emissiveColor 1.0 1.0 1.0
  15.                             diffuseColor  0.0 0.0 0.0
  16.                         }
  17.                     }
  18.                     geometry Text {
  19.                         string "Cafe"
  20.                         fontStyle FontStyle {
  21.                             justify "MIDDLE"
  22.                         }
  23.                     }
  24.                 },
  25.                 DEF BlueDisk Transform {
  26.                     translation 0.0 0.3 -0.10
  27.                     rotation    1.0 0.0 0.0 -1.57
  28.                     children Shape {
  29.                         appearance Appearance {
  30.                             material Material {
  31.                                 diffuseColor  0.0 0.3 0.8
  32.                             }
  33.                         }
  34.                         geometry Cylinder {
  35.                             radius 1.3
  36.                             height 0.1
  37.                         }
  38.                     }
  39.                 },
  40.                 DEF WhiteDisk Transform {
  41.                     translation 0.0 0.3 -0.10
  42.                     rotation    1.0 0.0 0.0 -1.57
  43.                     children [
  44.                         Shape {
  45.                             appearance USE GlowWhite
  46.                             geometry Cylinder {
  47.                                 radius 1.4
  48.                                 height 0.08
  49.                             }
  50.                         }
  51.                     ]
  52.                 },
  53.                 DEF RedAndWhiteBoxes Transform {
  54.                     translation 0.0 0.3 -0.10
  55.                     children [
  56.                         Shape {
  57.                             appearance Appearance {
  58.                                 material Material {
  59.                                     diffuseColor 0.8 0.0 0.0
  60.                                 }
  61.                             }
  62.                             geometry Box {
  63.                                 size 4.0 1.2 0.06
  64.                             }
  65.                         },
  66.                         Shape {
  67.                             appearance USE GlowWhite
  68.                             geometry Box {
  69.                                 size 4.2 1.4 0.04
  70.                             }
  71.                         }
  72.                     ]
  73.                 }
  74.             ]
  75.         },
  76.     # Non-billboard sign pole and ground
  77.         DEF Pole Transform {
  78.             translation 0.0 -3.1 -0.10
  79.             children Shape {
  80.                 appearance DEF Gray Appearance {
  81.                     material Material {
  82.                         diffuseColor 0.6 0.6 0.6
  83.                     }
  84.                 }
  85.                 geometry Box {
  86.                     size 0.4 4.0 0.4
  87.                 }
  88.             }
  89.         },
  90.         DEF PoleBase Transform {
  91.             translation 0.0 -5.2 -0.10
  92.             children Shape {
  93.                 appearance USE Gray
  94.                 geometry Box {
  95.                     size 1.0 0.2 1.0
  96.                 }
  97.             }
  98.         },
  99.         DEF Ground Transform {
  100.             translation 0.0 -5.35 -0.10
  101.             children Shape {
  102.                 appearance USE Gray
  103.                 geometry Box {
  104.                     size 10.0 0.1 10.0
  105.                 }
  106.             }
  107.         }
  108.     ]
  109. }
  110.